<?php

namespace Biz\Constants\OAuth;

/**
 * OAuthConstants.
 *
 * @license [http://www.85do.com] [杭州永奥网络科技有限公司]
 * @copyright Copyright (c) 2018-2026 Hangzhou Yongao Technology Co., Ltd. All rights reserved.
 */
class OAuthConstants
{
    /**
     * Grant type.
     */
    const GRANT_TYPE_CLIENT_CREDENTIALS = 'client_credentials';
    const GRANT_TYPE_AUTHORIZATION_CODE = 'authorization_code';
    const GRANT_TYPE_PASSWORD           = 'password';
    const GRANT_TYPE_REFRESH_TOKEN      = 'refresh_token';

    /**
     * Names.
     *
     * @var array
     */
    public static $GrantTypeNames = [
        self::GRANT_TYPE_CLIENT_CREDENTIALS => '客户端凭据授权令牌',
        self::GRANT_TYPE_AUTHORIZATION_CODE => '授权码',
        self::GRANT_TYPE_PASSWORD           => '密码授权令牌',
        self::GRANT_TYPE_REFRESH_TOKEN      => '刷新授权令牌',
    ];
}
